﻿
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Abp.AutoMapper;
using Abp.Runtime.Validation;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.Files;

namespace LeadThing.AbpZeroTemplate.Files.Dtos
{
    /// <summary>
    /// 文件编辑用Dto
    /// </summary>
    [AutoMap(typeof(File))]
    public class FileEditDto
    {

        /// <summary>
        ///   主键Id
        /// </summary>
        [DisplayName("主键Id")]
        public long? Id { get; set; }

        /// <summary>
        /// 纠纷外键ID
        /// </summary>
        [DisplayName("纠纷外键ID")]
        public int DisID { get; set; }

        /// <summary>
        /// 图片名称
        /// </summary>
        [DisplayName("图片名称")]
        [MaxLength(50)]
        public string Title { get; set; }

        /// <summary>
        /// 扩展名
        /// </summary>
        [DisplayName("扩展名")]
        [MaxLength(20)]
        public string Extension { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        [DisplayName("文件大小")]
        public int Size { get; set; }

        /// <summary>
        /// 文件路径
        /// </summary>
        [DisplayName("文件路径")]
        [Required]
        [MaxLength(500)]
        public string Url { get; set; }

    }
}
